<template>
	<view class="container">

		<view class="">
			<u-subsection fontSize="14px" :list="list" :current="curNow" @change="sectionChange" bgColor="#3c9cff">
			</u-subsection>
		</view>

		<view>
			统计
		</view>
	</view>

	</view>
</template>

<script>
	import {
		listBinding,
		getBinding,
		addBinding,
		updateBinding,
		delBinding
	} from "@/api/system/device";

	import {
		getList,
	} from "@/api/system/user";

	import {
		listMeal
	} from '@/api/system/setmeal'

	export default {

		data() {
			return {
				src: "",
				list: ['数据总览', '查询订单'],
				curNow: 0,
				device: {
			
				},

				rules: {
					'merchantId': [{
						type: 'any',
						required: true,
						message: '那个场所',
						max: 8,
						trigger: ['blur', 'change']
					}],


				},
			};
		},
		async onReady() {

		},
		methods: {
			sectionChange(index) {
				if (index == this.curNow) {
					return
				}
				let oldCurNow = this.curNow;
				this.curNow = index;
				if (index === 0) {
					uni.navigateTo({
						url: '/pages/order/order'
					})
				} else if (index === 1) {
					uni.navigateTo({
						url: '/pages/order/orderSearch'
					})
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		//width: 94%;
		padding: 12px;
		display: flex;
		flex-direction: column;
		margin: auto;
		background: linear-gradient(180deg, #f0f0f0 0%, #d0eaff 100%);
		height: 100vh;
	}

	.myMeal1 {
		display: flex;
		justify-content: center;
	}
</style>